3.608 \(\int \frac{(1+x) (1+2 x+x^2)^5}{x^9} \, dx\)

Optimal. Leaf size=70 \[ \frac{x^3}{3}+\frac{11 x^2}{2}-\frac{231}{x^2}-\frac{154}{x^3}-\frac{165}{2 x^4}-\frac{33}{x^5}-\frac{55}{6 x^6}-\frac{11}{7 x^7}-\frac{1}{8 x^8}+55 x-\frac{330}{x}+165 \log (x) \]

[Out]

-1/(8*x^8) - 11/(7*x^7) - 55/(6*x^6) - 33/x^5 - 165/(2*x^4) - 154/x^3 - 231/x^2 - 330/x + 55*x + (11*x^2)/2 +
x^3/3 + 165*Log[x]

________________________________________________________________________________________

Rubi [A]  time = 0.0214975, antiderivative size = 70, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.118, Rules used = {27, 43} \[ \frac{x^3}{3}+\frac{11 x^2}{2}-\frac{231}{x^2}-\frac{154}{x^3}-\frac{165}{2 x^4}-\frac{33}{x^5}-\frac{55}{6 x^6}-\frac{11}{7 x^7}-\frac{1}{8 x^8}+55 x-\frac{330}{x}+165 \log (x) \]

Antiderivative was successfully verified.

[In]

Int[((1 + x)*(1 + 2*x + x^2)^5)/x^9,x]

[Out]

-1/(8*x^8) - 11/(7*x^7) - 55/(6*x^6) - 33/x^5 - 165/(2*x^4) - 154/x^3 - 231/x^2 - 330/x + 55*x + (11*x^2)/2 +
x^3/3 + 165*Log[x]

Rule 27

Int[(u_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[u*Cancel[(b/2 + c*x)^(2*p)/c^p], x] /; Fr
eeQ[{a, b, c}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rubi steps

\begin{align*} \int \frac{(1+x) \left (1+2 x+x^2\right )^5}{x^9} \, dx &=\int \frac{(1+x)^{11}}{x^9} \, dx\\ &=\int \left (55+\frac{1}{x^9}+\frac{11}{x^8}+\frac{55}{x^7}+\frac{165}{x^6}+\frac{330}{x^5}+\frac{462}{x^4}+\frac{462}{x^3}+\frac{330}{x^2}+\frac{165}{x}+11 x+x^2\right ) \, dx\\ &=-\frac{1}{8 x^8}-\frac{11}{7 x^7}-\frac{55}{6 x^6}-\frac{33}{x^5}-\frac{165}{2 x^4}-\frac{154}{x^3}-\frac{231}{x^2}-\frac{330}{x}+55 x+\frac{11 x^2}{2}+\frac{x^3}{3}+165 \log (x)\\ \end{align*}

Mathematica [A]  time = 0.0024803, size = 70, normalized size = 1. \[ \frac{x^3}{3}+\frac{11 x^2}{2}-\frac{231}{x^2}-\frac{154}{x^3}-\frac{165}{2 x^4}-\frac{33}{x^5}-\frac{55}{6 x^6}-\frac{11}{7 x^7}-\frac{1}{8 x^8}+55 x-\frac{330}{x}+165 \log (x) \]

Antiderivative was successfully verified.

[In]

Integrate[((1 + x)*(1 + 2*x + x^2)^5)/x^9,x]

[Out]

-1/(8*x^8) - 11/(7*x^7) - 55/(6*x^6) - 33/x^5 - 165/(2*x^4) - 154/x^3 - 231/x^2 - 330/x + 55*x + (11*x^2)/2 +
x^3/3 + 165*Log[x]

________________________________________________________________________________________

Maple [A]  time = 0.006, size = 59, normalized size = 0.8 \begin{align*} -{\frac{1}{8\,{x}^{8}}}-{\frac{11}{7\,{x}^{7}}}-{\frac{55}{6\,{x}^{6}}}-33\,{x}^{-5}-{\frac{165}{2\,{x}^{4}}}-154\,{x}^{-3}-231\,{x}^{-2}-330\,{x}^{-1}+55\,x+{\frac{11\,{x}^{2}}{2}}+{\frac{{x}^{3}}{3}}+165\,\ln \left ( x \right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+x)*(x^2+2*x+1)^5/x^9,x)

[Out]

-1/8/x^8-11/7/x^7-55/6/x^6-33/x^5-165/2/x^4-154/x^3-231/x^2-330/x+55*x+11/2*x^2+1/3*x^3+165*ln(x)

________________________________________________________________________________________

Maxima [A]  time = 1.12942, size = 78, normalized size = 1.11 \begin{align*} \frac{1}{3} \, x^{3} + \frac{11}{2} \, x^{2} + 55 \, x - \frac{55440 \, x^{7} + 38808 \, x^{6} + 25872 \, x^{5} + 13860 \, x^{4} + 5544 \, x^{3} + 1540 \, x^{2} + 264 \, x + 21}{168 \, x^{8}} + 165 \, \log \left (x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^9,x, algorithm="maxima")

[Out]

1/3*x^3 + 11/2*x^2 + 55*x - 1/168*(55440*x^7 + 38808*x^6 + 25872*x^5 + 13860*x^4 + 5544*x^3 + 1540*x^2 + 264*x
 + 21)/x^8 + 165*log(x)

________________________________________________________________________________________

Fricas [A]  time = 1.34033, size = 196, normalized size = 2.8 \begin{align*} \frac{56 \, x^{11} + 924 \, x^{10} + 9240 \, x^{9} + 27720 \, x^{8} \log \left (x\right ) - 55440 \, x^{7} - 38808 \, x^{6} - 25872 \, x^{5} - 13860 \, x^{4} - 5544 \, x^{3} - 1540 \, x^{2} - 264 \, x - 21}{168 \, x^{8}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^9,x, algorithm="fricas")

[Out]

1/168*(56*x^11 + 924*x^10 + 9240*x^9 + 27720*x^8*log(x) - 55440*x^7 - 38808*x^6 - 25872*x^5 - 13860*x^4 - 5544
*x^3 - 1540*x^2 - 264*x - 21)/x^8

________________________________________________________________________________________

Sympy [A]  time = 0.146272, size = 60, normalized size = 0.86 \begin{align*} \frac{x^{3}}{3} + \frac{11 x^{2}}{2} + 55 x + 165 \log{\left (x \right )} - \frac{55440 x^{7} + 38808 x^{6} + 25872 x^{5} + 13860 x^{4} + 5544 x^{3} + 1540 x^{2} + 264 x + 21}{168 x^{8}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x**2+2*x+1)**5/x**9,x)

[Out]

x**3/3 + 11*x**2/2 + 55*x + 165*log(x) - (55440*x**7 + 38808*x**6 + 25872*x**5 + 13860*x**4 + 5544*x**3 + 1540
*x**2 + 264*x + 21)/(168*x**8)

________________________________________________________________________________________

Giac [A]  time = 1.09888, size = 80, normalized size = 1.14 \begin{align*} \frac{1}{3} \, x^{3} + \frac{11}{2} \, x^{2} + 55 \, x - \frac{55440 \, x^{7} + 38808 \, x^{6} + 25872 \, x^{5} + 13860 \, x^{4} + 5544 \, x^{3} + 1540 \, x^{2} + 264 \, x + 21}{168 \, x^{8}} + 165 \, \log \left ({\left | x \right |}\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((1+x)*(x^2+2*x+1)^5/x^9,x, algorithm="giac")

[Out]

1/3*x^3 + 11/2*x^2 + 55*x - 1/168*(55440*x^7 + 38808*x^6 + 25872*x^5 + 13860*x^4 + 5544*x^3 + 1540*x^2 + 264*x
 + 21)/x^8 + 165*log(abs(x))